﻿

using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace IotFun.Entity;
[SugarTable("net_viewtag_iot", TableDescription = "设备布局点位")]
public class ViewTag
{
    /// <summary>
    /// 雪花Id
    /// </summary>
    [SugarColumn(ColumnDescription = "Id", IsPrimaryKey = true, IsIdentity = false)]
    public virtual long Id { get; set; }

    /// <summary>
    /// 视图Id
    /// </summary>
    [SugarColumn(ColumnDescription = "ViewId")]
    public  long ViewId { get; set; }
    /// <summary>
    /// x轴
    /// </summary>
    [SugarColumn(ColumnDescription = "X")]
    public int X { get; set; }
    /// <summary>
    /// y轴
    /// </summary>
    [SugarColumn(ColumnDescription = "Y")]
    public int Y { get; set; }
    /// <summary>
    /// 长度
    /// </summary>
    [SugarColumn(ColumnDescription = "W")]
    public int W { get; set; }
    /// <summary>
    /// 高度
    /// </summary>
    [SugarColumn(ColumnDescription = "H")]
    public int H { get; set; }
    /// <summary>
    /// 标志
    /// </summary>
    [SugarColumn(ColumnDescription ="标志",Length =64,IsNullable =true)]
    public string Tag { get; set; }
    /// <summary>
    /// 编码
    /// </summary>
    [SugarColumn(ColumnDescription = "编码", IsNullable = true, Length = 64)]
    public string Code { get; set; }
    /// <summary>
    /// 类型 1站台 2堆垛机 
    /// </summary>
    [SugarColumn(ColumnDescription = "类型", IsNullable = true)]
    public int Type { get; set; }
    /// <summary>
    /// int条件
    /// </summary>
    [SugarColumn(ColumnDescription = "int条件", IsNullable = true)]
    public int IsCondition { get; set; }

    /// <summary>
    /// string提交
    /// </summary>
    [SugarColumn(ColumnDescription = "string条件", IsNullable = true)]
    public string Condition { get; set; }
    /// <summary>
    /// 命名
    /// </summary>
    [SugarColumn(ColumnDescription = "命名", IsNullable = true)]
    public string Name { get; set; }
}
